﻿<UserControl x:Class="SpinDotters.Widgets.Samples.CounterDemoControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sdw="clr-namespace:SpinDotters.Widgets;assembly=SpinDotters.Widgets"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="800" d:DesignWidth="480"
    FontSize="14">
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <sdw:Counter Grid.ColumnSpan="2" HorizontalAlignment="Center"
                     x:Name="myCounter"
                     VerticalAlignment="Bottom"
                     FontSize="72"
                     Reflective="True"
                     Digits="3" />
        <Button Grid.Row="1" Grid.Column="0"
                VerticalAlignment="Top"
                Margin="50"
                Content="Up"
                Click="UpButton_Click" />
        <Button Grid.Row="1" Grid.Column="1"
                VerticalAlignment="Top"
                Margin="50"
                Content="Down"
                Click="DownButton_Click" />
    </Grid>
</UserControl>
